package com.dhcc.bpm.modules.scf.service.HomePageService;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.bpm.modules.scf.dto.HomePageDTO.ScfAddressInfoDTO;
import com.dhcc.bpm.modules.scf.entity.HomePage.ScfAddressInfo;
import com.dhcc.bpm.modules.scf.vo.HomePageVO.ScfAddressInfoVO;

import java.io.IOException;

/**
 * 地区信息服务类
 *
 * @author liuguoting
 * @since 2023-10-07
 */
public interface IScfAddressInfoService extends IService<ScfAddressInfo> {

    /**
     * 自定义分页
     *
     * @param page
     * @param scfAddressInfo
     * @return
     */
    IPage<ScfAddressInfoVO> selectScfAddressInfoPage(IPage<ScfAddressInfoVO> page, ScfAddressInfoDTO scfAddressInfo);

    /**
     * 导入地区信息
     *
     * @param scfAddressInfo
     * @return
     */
    Boolean addAddressInfo(String excelRowId) throws IOException;

    /**
     * 通过地区名称获取地区代码
     *
     * @param adname
     * @return
     */
    String selectAdcodeByAdname(String adname);
}
